#include("/common/layout/bootstrap_form_layout.html")
#@layout()
#define title()
websocket demo
#end
#define head()
    <script>
    seajs.use(["jquery","websocket","jac"], function ($,ws)
    {
      $(function()
      {
        ws.init({url:"login",onmessage:function(evt,data)
          {
            alert(evt.data) ;
          },onopen:function()
					{
					alert(ws.openFlag) ;
					alert(ws.isOpen()) ;

          
					},onclose:function()
          {
            alert('close') ;
          }}
          );
      });
    });
    </script>
#end

#define form()


#end